import Vue from 'vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'
import axiosInstance from './js/axiosInstance';

Vue.config.productionTip = false;
Vue.use(ElementUI);

// 设置 baseURL 为服务器 IP 地址
// axios.defaults.baseURL = 'http://localhost:8086'

// Vue.prototype.$axios = axios;

Vue.prototype.$axios = axiosInstance;

new Vue({
  router,
  render: h => h(App),
  beforeCreate() {
    Vue.prototype.$bus =this;
  },
}).$mount('#app')
